/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package trabalho1;

/**
 *
 * @author geraldo
 */
public class ProcessaBonusDeSequencia {
  public void processaBonusMaiusculas(int nAlphaUC,int nLength,int nScore, String sAlphaUC){
    
    if (nAlphaUC > 0 && nAlphaUC < nLength) {
                        nScore = nScore + (nLength - nAlphaUC) * 2;
                        sAlphaUC = "+ " + (nLength - nAlphaUC) * 2;
                }
        System.out.println("nAlphaUCBonus is: " + sAlphaUC);
               
     
    }

    public void processaBonusMinusculas(int nAlphaLC,int nLength,int nScore,String sAlphaLC){
        
        
                if (nAlphaLC > 0 && nAlphaLC < nLength) {
                        nScore = nScore + (nLength - nAlphaLC) * 2;
                        sAlphaLC = "+ " + (nLength - nAlphaLC) * 2;
                                                        }
                
        System.out.println("nAlphaLCBonus is: " + sAlphaLC);
    }
    
    
    public void  processaBonusDigitos(int nNumber,int nLength,int nScore, int nMultNumber, String sNumber){
    
                if (nNumber > 0 && nNumber < nLength) {
                        nScore = nScore + nNumber * nMultNumber;
                        sNumber = "+ " + nNumber * nMultNumber;
                }
                
              System.out.println("nNumberBonus is: " + sNumber);
        
    }
    
   public void processaBonusSimbolo(int nSymbol,int nScore,int nMultSymbol,String sSymbol){
                if (nSymbol > 0) {
                        nScore = nScore + nSymbol * nMultSymbol;
                        sSymbol = "+ " + nSymbol * nMultSymbol;
                                  }
           
               System.out.println("nSymbolBonus is: " + sSymbol);
                  }
public void processaBonusSequenciaMeio(int nMidChar,int nScore,int nMultMidChar, String sMidChar){ 


                      if (nMidChar > 0) {
                        nScore = nScore + nMidChar * nMultMidChar;
                        sMidChar = "+ " + nMidChar * nMultMidChar;
                           }
     System.out.println("nMidCharBonus is: " + sMidChar);
   
    
}  
}
